import request from '@/utils/request.js'

/**
 * @description 接口描述信息
 * @param {string} 传递参数描述信息
 * */
export const basePostData = (data) => {
  return request({
    url: "",
    method: "POST",
    data
  })
}

/**
 * @description 接口描述信息
 * @param {string} 传递参数描述信息
 * */
export const baseGetData = (params) => {
  return request({
    url: "",
    method: "GET",
    params
  })
}

/**
 * @description 上传图片
 * @param {FormData} data FormData 对象
 * */
export const ulpoadFileImgData = (data) => request({
  url: "",
  method: "POST",
  headers: { 'Content-Type': 'multipart/form-data' },
  data
})

/**
* @description 导出 数据
* @param {string} formdata 加密后的数据
* */
export const exportEventReviewData = (data) => request({
  url: "",
  method: "GET",
  responseType: 'blob',
  params: {
    formdata: data
  }
})